package com.lagou.cluster.service;

import com.lagou.cluster.dto.LoginUserDTO;
import com.lagou.cluster.pojo.User;

/**
 * @ProjectName: S2-2
 * @Title: UserService
 * @Package: com.lagou.cluster.service
 * @Description: 用户 Service
 * @author: Ian
 * @date: 3/19/2021 11:29 AM
 * @version: V1.0.0
 * @Copyright:
 */
public interface IUserService {

    /**
     * 根据登陆名称查询用户信息
     *
     * @param username 登录名
     * @return 返回用户信息
     */
    User findByUsername(String username);

    /**
     * 校验用户登录信息
     *
     * @param userDTO
     * @return
     */
    boolean checkUser(LoginUserDTO userDTO);
}
